<app-widget-add (cancelEvent)="cancelHandle()" (saveEvent)="saveHandle()">
    <form nz-form [formGroup]="validateForm" *ngIf="validateForm">
        <nz-form-item>
            <nz-form-label nzFor="name" nzSpan="6" nzRequired>职业</nz-form-label>
            <nz-form-control nzSpan="14" nzErrorTip="职业不能为空">
                <input nz-input id="name" formControlName="name">
            </nz-form-control>
        </nz-form-item>
        <nz-form-item>
            <nz-form-label nzFor="weapon" nzSpan="6" nzRequired>武器</nz-form-label>
            <nz-form-control nzSpan="14" nzErrorTip="武器不能为空">
                <input nz-input id="weapon" formControlName="weapon">
            </nz-form-control>
        </nz-form-item>
        <nz-form-item>
            <nz-form-label nzFor="hero" nzSpan="6" nzRequired>英雄</nz-form-label>
            <nz-form-control nzSpan="14" nzErrorTip="英雄不能为空">
                <input nz-input id="hero" formControlName="hero">
            </nz-form-control>
        </nz-form-item>
        <nz-form-item>
            <nz-form-label nzFor="skill" nzSpan="6" nzRequired>天赋</nz-form-label>
            <nz-form-control nzSpan="14" nzErrorTip="天赋不能为空">
                <input nz-input id="skill" formControlName="skill">
            </nz-form-control>
        </nz-form-item>
        <nz-form-item>
            <nz-form-label nzFor="status" nzSpan="6" nzRequired>状态</nz-form-label>
            <nz-form-control nzSpan="14" nzErrorTip="状态不能为空">
                <nz-radio-group id="status" formControlName="status">
                    <label nz-radio nzValue="A">活动</label>
                    <label nz-radio nzValue="D">禁用</label>
                </nz-radio-group>
            </nz-form-control>
        </nz-form-item>
    </form>
</app-widget-add>